/* reset */
button,
fieldset,
input {
  all: unset;
}

.contentWrapper {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  inset: 0;
}

.overlay {
  position: absolute;
  z-index: 1;
  animation: overlayShow 150ms var(--animation__spring);
  background-color: rgba(0 0 0 / 25%);
  inset: 0;
}

.closeButton {
  position: absolute;
  top: var(--size__350);
  right: var(--size__500);

  .hasHeaderIcon & {
    top: var(--size__500);
    border: 0;
    text-align: center;
  }
}

.header {
  padding: var(--size__350) var(--size__600);
  border-bottom: 1px solid var(--color__black--300);
  text-align: left;

  .hasHeaderIcon & {
    padding: var(--size__600) var(--size__600) 0;
    border: 0;
    text-align: center;
  }
}

.content {
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  width: 80vw;
  max-width: 27rem;
  max-height: 85vh;
  border: 1px solid var(--color__black--400);
  border-radius: var(--size__150);
  animation: contentShow 150ms var(--animation__spring);
  background-color: white;
  box-shadow: hsl(206deg 22% 7% / 25%) 0 10px 38px -10px, hsl(206deg 22% 7% / 10%) 0 10px 20px -15px;
  overflow-y: auto;
  transform: translate(-50%, -50%);

  &.isLg {
    max-width: 50rem;
  }
}

.content:focus-visible {
  outline: none;
}

.innerContent {
  padding: var(--size__600);
  text-align: left;
}

.title {
  margin: 0 auto;
  color: var(--color__text--normal);
  font-size: var(--text__large);
  font-weight: 700;
}

.titleIcon {
  margin-bottom: var(--size__250);
  color: var(--color__black--200);
  font-size: 3rem;
}

.description {
  margin: var(--size__250) 0 var(--size__250);
  color: var(--color__black--600);
  font-size: var(--text__normal);
  line-height: 1.5;
}

@keyframes overlayShow {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes contentShow {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}